package com.neusoft.neuiotms.dcam.workflow.repository;

import java.util.List;

import org.springframework.data.jpa.repository.JpaRepository;

import com.neusoft.neuiotms.dcam.workflow.model.PeifaSL;

public interface PeifaSLRepository extends JpaRepository<PeifaSL, Long>, CustomizedPeifaSLRepository {

    PeifaSL findByTaskId(String taskId);

    PeifaSL findByWorkOrderNumAndTaskId(String workOrderNum, String taskId);

    List<PeifaSL> findByWorkOrderNum(String workOrderNum);

    PeifaSL findTopByWorkOrderNumOrderByCreateTimeDesc(String workOrderNum);
}
